<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box {
      width: 200px;
      height: 200px;
      background-color: pink;
      /* display: none; */
      /* visibility: hidden; */
      /* opacity: 0; */
      /* width: 0;
      height: 0;
      overflow: hidden; */

      clip-path: polygon(0 0, 0 0, 0 0, 0 0);
    }
  </style>
</head>
<body>
  <div class="box">
    hello
  </div>

  <script>
    let box = document.querySelector('.box')
    box.addEventListener('click', function () {
      console.log('点击了');
    })
  </script>
</body>
</html>